#pragma once
#include <string>
#include <iostream>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>

const std::string NanedPipe = "./pipe";
const mode_t mode = 0600;
const size_t bufsize = 1024;
const int WRITEFLAG=O_WRONLY;
const int READFLAG=O_RDONLY;

int openpipe(int flag)
{
    int fd=0;
    fd = ::open(NanedPipe.c_str(), flag);
    return fd;
}
